home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / Makefile.in < prev    next >
Makefile  |  1994-01-28  |  5KB  |  162 lines

  1. # Makefile for Texinfo distribution.    -*- Indented-Text -*-
  2. # Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH  = $(srcdir):$(common)
  22.  
  23. common = $(srcdir)/libtxi
  24.  
  25. CC = @CC@
  26.  
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30.  
  31. LN    = ln
  32. RM    = rm -f
  33. TAR    = tar
  34. MKDIR    = mkdir
  35.  
  36. DEFS = @DEFS@
  37. LIBS = @LIBS@
  38. LOADLIBES = $(LIBS)
  39.  
  40. ALLOCA = @ALLOCA@
  41.  
  42. SHELL = /bin/sh
  43.  
  44. CFLAGS = -g
  45. LDFLAGS = -g
  46.  
  47. prefix = /usr/local
  48. exec_prefix = $(prefix)
  49. bindir = $(exec_prefix)/bin
  50. # Prefix for each installed program, normally empty or `g'.
  51. binprefix = 
  52. libdir = $(prefix)/lib
  53. # Prefix for each installed man page, normally empty or `g'.
  54. manprefix = 
  55. mandir = $(prefix)/man/man1
  56. manext = 1
  57. infodir = $(prefix)/info
  58.  
  59. # For info program. 
  60. DEFAULT_INFOPATH = $(infodir):.
  61.  
  62. #### End of system configuration section. ####
  63.  
  64. VERSION = 3.1
  65. DISTNAME = texinfo-$(VERSION)
  66.  
  67. # Subdirectories that have makefiles
  68. SUBDIRS = libtxi makeinfo info util
  69.  
  70. # All subdirectories that go into a distribution
  71. ALL_SUBDIRS = $(SUBDIRS) emacs
  72.  
  73. MDEFINES = bindir='$(bindir)' mandir='$(mandir)' manext='$(manext)' \
  74.     prefix='$(prefix)' binprefix='$(binprefix)' \
  75.     manprefix='$(manprefix)' infodir='$(infodir)' CFLAGS='$(CFLAGS)' \
  76.     CC='$(CC)' ALLOCA='$(ALLOCA)' LDFLAGS='$(LDFLAGS)' \
  77.     DEFAULT_INFOPATH='$(DEFAULT_INFOPATH)'
  78.  
  79. all: sub-all texi.info
  80.  
  81. install: all installdirs
  82.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  83.     d=$(srcdir); test -f ./texi.info && d=.; \
  84.     cd $$d; for f in texi.info* ; do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  85.  
  86. installdirs:
  87.     -sh $(srcdir)/util/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  88.  
  89. uninstall:
  90.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  91.     rm -f $(infodir)/texi.info*
  92.  
  93. Makefile: Makefile.in config.status
  94.     sh ./config.status
  95.  
  96. config.status: configure
  97.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  98.  
  99. configure: configure.in
  100.     cd $(srcdir); autoconf
  101.  
  102. sub-all TAGS:
  103.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  104.  
  105. clean mostlyclean:
  106.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  107.  
  108. distclean: clean
  109.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  110.     rm -f Makefile config.status
  111.  
  112. realclean: 
  113.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) realclean; cd ..; done
  114.     rm -f TAGS texi.info* Makefile config.status configure
  115.  
  116. texi.info:
  117.     ./makeinfo/makeinfo -I$(srcdir) texi.texi
  118.  
  119. texinfo.dvi:
  120.     PATH="$(srcdir)/util:$${PATH}" TEXINPUTS="$(srcdir):$(common):$${TEXINPUTS}" texi2dvi $(srcdir)/texi.texi
  121.  
  122. dist: DISTFILES
  123.     rm -rf $(DISTNAME)
  124.     mkdir $(DISTNAME)
  125.     for d in $(ALL_SUBDIRS); do mkdir $(DISTNAME)/$$d; done
  126.     for f in `cat DISTFILES`; do \
  127.        ln $(srcdir)/$$f $(DISTNAME)/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $(DISTNAME)/$$f ; } \
  128.     done
  129.     tar --gzip -chvf $(DISTNAME).tar.z $(DISTNAME)
  130.     rm -rf $(DISTNAME)
  131.  
  132. # Gets rid of most of the unwanted files.  Verify manually (if necessary)
  133. # that this produces a list of all the files desired in the distribution. 
  134. DISTFILES: force
  135.     (cd $(srcdir); find . $(ALL_SUBDIRS) ! -type d -print) \
  136.     | sed  '/\/RCS\//d; \
  137.            /\.tar.*/d; \
  138.            /~$$/d; /\.o$$/d; \
  139.            /\/config\.status$$/d; \
  140.            /\/Makefile$$/d;    \
  141.            /\/.*\.BAK$$/d; \
  142.            /\/core$$/d; \
  143.            /\/a.out$$/d; \
  144.            /\/=/d; \
  145.            /\/conftest\.c$$/d; \
  146.            /\/DISTFILES$$/d; \
  147.            /\.toc$$/d; \
  148.            /\.aux$$/d; /\.log$$/d; \
  149.            /\.cps$$/d; /\.cp$$/d; \
  150.            /\.fns$$/d; /\.fn$$/d; \
  151.            /\.tps$$/d; /\.tp$$/d; \
  152.            /\.vrs$$/d; /\.vr$$/d; \
  153.            /\.pgs$$/d; /\.pg$$/d; \
  154.            /\.kys$$/d; /\.ky$$/d; \
  155.            s/^.\///; /^\.$$/d;' \
  156.     | sort | uniq > DISTFILES
  157.  
  158. force:
  159.  
  160. # Prevent GNU make v3 from overflowing arg limit on SysV.
  161. .NOEXPORT:
  162.